package com.byapp.fast.common.converter;


import com.byapp.fast.modules.order.dto.OrderDataDTO;
import com.byapp.fast.modules.order.entity.OrderEntity;

public class OrderDataDTOConverter {

    public static OrderEntity create(OrderDataDTO orderDataDTO) {
        return new OrderEntity()
                .setBuyMoney(orderDataDTO.getTotalMoney())
                .setPayType(orderDataDTO.getPayType())
                .setBuyChannel(orderDataDTO.getBuyChannel());
    }

}
